import Http from "~/apis/utils/http";

class Auth extends Http {
  async login(params?: any) {
    return await this.post("sysUser/login", params);
  }

  async register(params?: any) {
    return await this.post("sysUser/registry", params);
  }

  async getUserInfo() {
    return await this.get("sysUser/userInfo");
  }
}

export default new Auth();
